package com.project.customview;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.project.customview.annotation.Inject;
import com.project.customview.annotation.InjectView;
import com.project.customview.annotation.OnClick;

public class DemoActivity extends AppCompatActivity {

    @InjectView(R.id.tv_demo)
    TextView tvDemo;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_demo);
        Inject.inject(this);
        tvDemo.setText("我的新注解");
    }
    @OnClick(R.id.tv_demo)
    public void tvOnclick(View v){
        Toast.makeText(this,"被点击了",Toast.LENGTH_LONG).show();

    }


}
